<template>
	<view class="container">
		<view class="midBox" style="margin-top: 0;">
			<view class="image-tit">跟进信息</view>
			<view class="textBox">
				<view class="text">
					<textarea name="" v-model="desc" placeholder="请输入" maxlength="1000" placeholder-style="color:#CCCCCC" id="" cols="30" rows="10"></textarea>
				</view>
			</view>
		</view>
		<view class="foot">
			<view class="btnBox flex-ac">
				<view class="btn-1 middle" @click="sure">确定</view>
			</view>
			<x-botSpace></x-botSpace>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				num: '',
				id: '',
				desc: ''
			}
		},
		onLoad(opt) {
			if(opt) console.log('opt:', opt)
			this.id = opt.id
		},
		methods: {
			sure(){
				if(this.desc === '') return this.$Toast.message('请输入内容')
				this.$Net.post("/carAccident/addFollow",{
					id: this.id,
					msg: this.desc
				}).then(res=>{
					console.log('res:', res)
					this.$Toast.messageIcon('操作成功')
					setTimeout(()=>{
						this.$Jump.Back(1)
					}, 1500)
				})
			}
		}
	}
</script>

<style lang="scss">
	page{ background-color: #fff; }
</style>

<style lang="scss" scoped>
	// @import './style.scss';
	.midBox{
		width: 100%;
		// margin-top: 20rpx;
		background-color: #fff;
		.image-tit{
			padding-left: 40rpx;
			padding-top: 30rpx;
			color: #333;
		}
		.textBox{
			width: 100%;
			margin-top: 32rpx;
			padding: 0 24rpx;
			padding-bottom: 32rpx;
			.text{
				border-radius: 8rpx;
				padding: 16rpx;
				width: 100%;
				height: 348rpx;
				background-color: #F6F6F6;
				textarea{
					width: 100%;
					height: 100%;
				}
			}
		}
		.imageBox{
			padding: 30rpx 40rpx 24rpx;
			.item{
				width: 160rpx;
				height: 160rpx;
				margin-right: 30rpx;
				position: relative;
				.del{
					width: 32rpx;
					height: 32rpx;
					position: absolute;
					top: -12rpx;
					right: -12rpx;
					z-index: 10;
				}
			}
		}
		.list{
			width: 100%;
			height: 96rpx;
			padding-right: 24rpx;
			padding-left: 24rpx;
			border-bottom: 1rpx solid #e5e5e5;
			.hd{
				width: 234rpx;
				color: #333;
			}
			.md{
				flex: 1;
				height: 100%;
				input{
					width: 100%;
					height: 100%;
					line-height: 94rpx;
					text-align: right;
					padding-right: 20rpx;
				}
			}
			.bd{
				color: #999;
				image{
					width: 30rpx;
					height: 30rpx;
				}
			}
		}
		.list:last-child{
			border: none;
		}
	}
	.cell{
		width: 100%;
		height: 120rpx;
		border-bottom: 1rpx solid #f7f7f7;
		border-top: 1rpx solid #f7f7f7;
		padding: 0 20rpx;
		input{
			text-align: right;
			padding-right: 20rpx;
		}
	}
	.foot {
		position: fixed;
		bottom: 0;
		left: 0;
		width: 100%;
		padding: 30rpx;
	
		.btnBox {
			width: 100%;
	
			.btn-1 {
				flex: 1;
				height: 90rpx;
				background: #1684FC;
				border-radius: 10rpx;
				color: #ffffff;
				font-size: 34rpx;
			}
	
			.btn-2 {
				flex: 1;
				height: 90rpx;
				border: 1px solid #1684FC;
				border-radius: 10rpx;
				color: #1684FC;
				font-size: 34rpx;
			}
		}
	}
</style>
